package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.CourseTeacherDTO;
import com.xuecheng.content.entity.CourseTeacher;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-12-15
 */
public interface CourseTeacherService extends IService<CourseTeacher> {

    /**
     * @return com.xuecheng.api.content.model.TeachplanDTO
     * @Description //獲取教師信息
     * @Date 2021/12/15 20:46
     * @Param [courseBaseId]  課程信息id
     **/
    List<CourseTeacherDTO> queryTeacher(Long courseBaseId, Long companyId);

    /**
     * @return com.xuecheng.api.content.model.CourseTeacherDTO
     * @Description //課程新增或修改
     * @Date 2021/12/15 22:22
     * @Param [courseTeacherDTO, companyId] 保存信息和機構id
     **/
    CourseTeacherDTO insertAndUpdateTeacherDTO(CourseTeacherDTO courseTeacherDTO, Long companyId);

    /**
     * @Description //刪除教師信息
     * @Date 2021/12/15 23:41
     * @Param [courseBaseId, courseTeacherId, companyId]
     * @return void
     **/
    void deleteTeacher(Long courseBaseId, Long courseTeacherId, Long companyId);
}
